package com.greate.shiro.springbootshirodemo.common.exception;

import org.springframework.web.bind.annotation.*;

@RestControllerAdvice
public class GlobalExceptionHandler {

	@ExceptionHandler(org.apache.shiro.authz.AuthorizationException.class)
	public String unAuth() {
		return "权限不足";
	}

}
